﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Zhuang.WinForm.AppCode.Common;
using Zhuang.Utility.Common.DataBase;

namespace Zhuang.WinForm
{
    static class Program
    {
        /// <summary>
        /// 作者：庄伟斌
        /// 日期：2012-01-18
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {

            SqlHelper.connectionString = SystemUtility.connectionString;

            //string oleConnectionString = @"Provider=Microsoft.Jet.OleDb.4.0;Data Source=" + System.Environment.CurrentDirectory + @"\AppFolder\DataBase\AppDB.mdb;Persist Security Info=False;Jet OLEDB:Database Password=";
            string oleConnectionString = @"Provider=Microsoft.Jet.OleDb.4.0;Data Source=" + @"E:\SVN\zhuang-projects\trunk\Zhuang.Projects\Zhuang.WinForm.Pos\AppFolder\Database\AppDB.mdb;Persist Security Info=False;Jet OLEDB:Database Password=";
            
            OleDbHelper.connectionString = oleConnectionString;
            DAL.Access.GlobalDAL.SetConnectingString(oleConnectionString);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Login());
            //Application.Run(new Form1());
            //Application.Run(new BasicDataSetting.ProductList());

        }
    }
}
